package cn.icanci.nacos.user.client;

import cn.icanci.nacos.user.client.impl.OrderClientImpl;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import com.alibaba.cloud.nacos.NacosServiceInstance;

/**
 * @author icanci
 * @since 1.0 Created in 2023/04/17 21:47
 */
@FeignClient(value = "order-service", fallback = OrderClientImpl.class)
@Component
public interface OrderClient {

    @GetMapping("/order/instances")
    List<NacosServiceInstance> instances();
}
